package com.movieknight;

public class Friend implements Comparable<Friend> {
	private long id;
	private String name;
	
	public Friend() {
		super();
		this.id = 0;
		this.name = "";
	}
	
	public Friend(long id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
	
	public long getId() {
		return id;
	}
	
	public void setId(long id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	public int compareTo(Friend other) {
		return (int) (id - other.getId());
	}
}